/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util.generic;

/**
 *
 * @author martin
 */
public class Generic<T> {
  private final Class<T> _class;
  
  public Generic(final Class<T> cl){
    _class=cl;
  }
  
  public static<T> Generic like(final Class<T> cl){
    return new Generic(cl);
  }
  
  public boolean is(Object A){
    return _class.isInstance(A);
  }
}
